<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/templates/css/style.css" type="text/css" />
<link rel="stylesheet" href="/templates/css/app_style.css" type="text/css" />
<link rel="stylesheet" href="/templates/css/app.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/templates/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="/templates/js/global.js"></script>
<meta name="keywords" content="{<$assign_info[1].info>}" />
<meta name="description" content="{<$assign_info[2].info>}" />
<title>APP下载_{<$assign_info[0].info>}</title>
<style>
 body{ font-family:"新宋体"}
</style>
</head>
<body>
	<div id="wrap">
		<div id="nav">
        	<div class="nav_menu">
            	<div class="nav_menu_left">
                	<li><a href="#" onclick="Addme()">收藏本站</a></li>
                    <script>
                    function Addme() {
    					url = document.URL;  //你自己的主页地址
    					title = "游戏扒一扒";  //你自己的主页名称
    					window.external.AddFavorite(url, title);
					}
                    </script>
                    <li>固件</li>
                    <li>新闻中心</li>
                    <li>新手教程</li>
                    <li>越狱</li>
                    <li>微博</li>
                    <li>商务合作</li>
                </div>
                <div class="nav_menu_right">
                	{<if $uid != ''>}
                	<li><a href="member.php?id={<$uid>}">进入会员中心</a></li>
                    <li><a href="member.php?id={<$uid>}">剩余积分:{<$integral>}</a></li>
					<li class="quit"><span>退出</span></li>
					{<else if $uid == ''>}
					<li><a href="login.php?id=1">注册</a></li>
                    <li><a href="login.php?id=2">登录</a></li>					
                    {</if>}
                </div>
            </div>
        </div><!--顶部-->
        <div id="header">
        	<div id="banner"><a href="/app_list/app-{<$assign_bannerapp[0].id>}.html" target="_blank" title="{<$assign_bannerapp[0].name>}"><img src="{<$assign_bannerapp[0].url>}" alt="{<$assgin_bannerapp[0].name>}" /></a></div>
            <div id="menu">
            	<div class="logo"></div>
                <div class="search">
                	<div class="search_content">
						<div class="search_main">
							<form action="search.php" method="get">
                        	<div class="search_icon"></div>
							
                        	<input class="search_text" name="keywords" type="text" value="{<$assign_skeyword[0]['name']>}" /></div>
							<input class="search_button" type="submit" value="搜索" />
                        	</form>
						
                        	
                    </div>
                    <div class="search_keywords">热门搜索：
                    	{<section name="s" loop=$assign_search>}
                        	<a href="search.php?keywords={<$assign_search[s].name>}&page=1" target="_blank"><span>{<$assign_search[s].name>} </span></a>
                        {</section>}
                    </div>
                </div>
                	<div class="menu_tab">
                    	<li class="selected"><a href="index.html" target="_blank">iPhone游戏</a></li>
                        {<section name="c" loop=$assign_artcategory>}
                        	<li><a href="article-1-{<$assign_artcategory[c].id>}-0.html" target="_blank">{<$assign_artcategory[c].name>}</a></li>
                        {</section>}
<!--                        <li>游戏测评</li>
                        <li>iPhone新闻</li>-->
                        <li><a href="lottery.html" target="_blank">积分兑换</a></li>
                    </div>
            </div>
            <div id="menu_list">
				<div class="listmenu">
              		<li><a href="index.html" target="_blank">首页</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=1&ca=0&kw=0&pre=" target="_blank">限时免费</a></li>
                	<li><a href="app_list.php?page=1&order=1&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">热门游戏</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">最新APP应用</a></li>
                	<li><a href="app_list.php?page=1&id=0&pri=0&ca=0&kw=1&pre=51" target="_blank">网游</a></li>
				</div>
                <div class="app_count"><h1>共{<$assign_countapp>}个应用,今日更新{<$assign_radnom>}个应用</h1></div>
            </div>
        </div><!--头部-->
		<div id="container">
        <div id="content">
			<div id="corner-stamp">
				<div id="location">
					<a href="app_list.php?page=1&order=0&id=0&pri=0&ca=0&kw=&pre=" target="_blank">iPhone游戏</a>>><a href="app_list.php?page=1&order=1&id=0&pri=0&ca=0&kw=&pre=" target="_blank">热门游戏</a>
				</div>
				<div class="stamp_plateform">
                	<label>价格:</label>
					<li class="0"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id=0&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">全部</a></li>
					<li class="1"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id=1&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iOS</a></li>
					<li class="2"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id=2&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">越狱</a></li>
				</div>
                <div class="stamp_sequence">
                	<label>排序:</label>
                    {<if $assign_per[6] == 0>}
					<li class="current"><a href="app_list.php?page=1&order=0&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">最新</a></li>
                    <li><a href="app_list.php?page=1&order=1&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">最火</a></li>
                    {<else if $assign_per[6] == 1>}
                    <li><a href="app_list.php?page=1&order=0&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">最新</a></li>
					<li class="current"><a href="app_list.php?page=1&order=1&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">最火</a></li>
                    {</if>}
                </div>
				<div class="stamp_price">
					<label>价格:</label>
                    {<if $assign_per[1] == 0>}
					<li class="current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=0&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">全部</a></li>
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=1&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">免费</a></li>
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=2&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">付费</a></li>
                    {<else if $assign_per[1] == 1>}
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=0&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">全部</a></li>
					<li class="current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=1&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">免费</a></li>
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=2&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">付费</a></li>
                    {<else if $assign_per[1] ==2>}
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=0&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">全部</a></li>
                    <li><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=1&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">免费</a></li>
					<li class="current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri=2&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">付费</a></li>
                    {</if>}
                    </div>
                    <div class="stamp_Devices">
                    <label>平台:</label>
                    {<if $assign_per[2] == 0>}
					<li class="0 current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=0&kw={<$assign_per[3]>}&pre={<$assign_pre[5]>}">全部</a></li>
                     <li class="1"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=1&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPhone</a></li>
                      <li class="2"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=2&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPad</a></li>
                    {<else if $assign_per[2] == 1>}
                    <li class="0"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=0&kw={<$assign_per[3]>}&pre={<$assign_pre[5]>}">全部</a></li>
                    <li class="1 current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=1&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPhone</a></li>
                    <li class="2"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=2&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPad</a></li>
                    {<else if $assign_per[2] == 2>}
                    <li class="0"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=0&kw={<$assign_per[3]>}&pre={<$assign_pre[5]>}">全部</a></li>
                     <li class="1"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=1&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPhone</a></li>
                    <li class="2 current"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca=2&kw={<$assign_per[3]>}&pre={<$assign_per[5]>}">iPad</a></li>
                    {</if>}
				</div>
				<div class="stamp_app">
                	<label>应用:</label>
					<li class="0"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw=&pre={<$assign_per[5]>}">全部</a></li>
                    {<section name="category" loop=$assign_category>}
                     <li class="{<$assign_category[category].id>}"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_category[category].id>}&pre=">{<$assign_category[category].name>}</a></li>
                    {</section>}
				</div>
				<div class="stamp_keywords" style="display:none;">
                	<label>关键词:</label>
                    <li class=""><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre=">全部</a></li>
                    {<section name="key" loop=$assign_keyword>}
                    	{<if $assign_keyword[key].id != 34 >}
                        <li class="{<$assign_keyword[key].id>}"><a href="app_list.php?page=1&order={<$assign_per[6]>}&id={<$assign_per[0]>}&pri={<$assign_per[1]>}&ca={<$assign_per[2]>}&kw={<$assign_per[3]>}&pre={<$assign_keyword[key].id>}">{<$assign_keyword[key].name>}</a></li>
                        {</if>}
                    {</section>}
				</div>
			</div>

                <div id="content_right">
<!--                	<div class="content_app2" style="background:#fff; border:1px solid #dddddd;">
                    	{<section name="right" loop=$assign_right>}
						<div class="single">
							<a href="view.php?id={<$assign_right[right].id>}&page=1" target="_blank"><img src="/images/{<$assign_right[right].pic>}.png" alt="{<$assign_right[right].name>}" width="230px" height="100px" /> </a>
                        	<div class="name">{<$assign_right[right].name>}</div>
                        </div>
						{</section>}
                    </div>-->
<!--                    <div class="content_news">
                    	<div class="name">新闻资讯</div>
                        	<div class="category">苹果新闻</div>
							<div class="more">[全部]</div>
                            <div class="newslist">
                             {<section name="n" loop=$assign_newstop5>}
                        		<li><div class="newsicon"></div><a href="view.php?id={<$assign_newstop5[n].id>}" target="_blank" title="{<$assign_newstop5[n].title>}">{<$assign_newstop5[n].title>}</a></li>
                            {</section>}
                           	</div>
                            <div class="newslist">
                             {<section name="m" loop=$assign_newstop10>}
                        		<li><div class="newsicon"></div><a href="view.php?id={<$assign_newstop10[n].id>}" target="_blank" title="{<$assign_newstop10[n].title>}">{<$assign_newstop10[n].title>}</a></li>
                            {</section>}
                           	</div>
                            <div class="category">游戏测评</div>
							<div class="more">[全部]</div>
                            <div class="newslist">
                             {<section name="n" loop=$assign_newtop5>}
                        		<li><div class="newsicon"></div><a href="view.php?id={<$assign_newtop5[n].id>}" target="_blank" title="{<$assign_newtop5[n].title>}">{<$assign_newtop5[n].title>}</a></li>
                            {</section>}
                           	</div>
							<div class="newslist">
                            {<section name="m" loop=$assign_newtop10>}
                        		<li><div class="newsicon"></div><a href="view.php?id={<$assign_newtop10[n].id>}" target="_blank" title="{<$assign_newtop10[n].title>}">{<$assign_newtop10[n].title>}</a></li>
                            {</section>}
                           	</div>
                    </div>-->
                    <div class="content_rank">
                    	<div class="category"><div class="category_name">免费应用排行</div><div class="more"><a href="app_list.php?page=1&id=0&pri=1&ca=&kw=&pre" target="_blank">更多>>></a></div></div>
                        	<ul class="top">
							{<section name="p" loop=$assign_apprank>}
								{<if $assign_apprank[p].num < 4>}
								<li><a href="/app_list/app-{<$assign_apprank[p].id>}.html" target="_blank"><div class="num1">{<$assign_apprank[p].num>}</div><div class="icon"><img src="{<$assign_apprank[p].icon>}" width="48px" height="48px" /></div>{<$assign_apprank[p].name>}</a></li>
								{<else>}
								<li><a href="/app_list/app-{<$assign_apprank[p].id>}.html" target="_blank"><div class="num">{<$assign_apprank[p].num>}</div><div class="icon"><img src="{<$assign_apprank[p].icon>}" width="48px" height="48px" /></div>{<$assign_apprank[p].name>}</a></li>
								{</if>}
							{</section>}
                            </ul>
                    	<div class="content_app2">
							{<section name="rightapp" loop=$assign_rightapp>}
                    		<div class="single">
								<a href="/app_list/app-{<$assign_rightapp[rightapp].id>}.html" target="_blank"><img width="230px" height="100px" src="/images/{<$assign_rightapp[rightapp].pic>}.png" alt="{<$assign_rightapp[rightapp].name>}" /></a>
                        		<div class="name">{<$assign_rightapp[rightapp].name>}</div>
                        	</div>
							{</section>}
                    	</div>
                    </div>
                    <div class="content_intro">
						<div class="title">新手教程</div>
						<div class="intro_main">
							<li>
							<div class="intro_img"><p>入门功能</p></div>
							<dt class="intro_desc"><p>激活iPhone4S|</p><p>123</p><p>123|</p><p>123</p></dt>
							</li>
						</div>
						<div class="intro_main">
							<li>
							<div class="intro_img"><p>装机必备</p></div>
							<dt class="intro_desc"></dt>
							</li>
						</div>
						<div class="intro_main">
							<li>
							<div class="intro_img"><p>越狱破解</p></div>
							<dt class="intro_desc"></dt>
							</li>
						</div>
					</div>
                </div><!--右侧-->

				<div id="app_list">
                	{<section name="app" loop=$assign_app>}
                	<div class="box cla {<$assign_app[app].kid>}">
                    	<a href="/app_list/app-{<$assign_app[app].trackid>}.html" target="_blank"><img width="70px" height="70px" src="{<$assign_app[app].icon>}" />
                        <div class="name">
                        	{<$assign_app[app].trackname>}
                        </div></a>
                    </div>
                    {</section>}
                   
    		</div>
            <div id="fpage">
								<div class="page_content">
                                    {<$assign_first>}
                                    {<$assign_pre>}
                                    {<$assign_list>}
                                    {<$assign_next>}
                                    {<$assign_last>}
								</div>
								<script>
									var content = $(".page_content").width();
									var fpage = $("#fpage").width();
									var margin = (parseInt(fpage)-parseInt(content))/2;
									$(".page_content").css("margin","0 "+margin+"px");
									
								</script>
            </div>
            <div id="footer">{<$assign_info[4].info>}</div><!--底部-->
        </div>
    </div>
	</div>
</body>
<script>
	function GetRequest() {
		var url = location.search; //获取url中"?"符后的字串
		var theRequest = new Object();
		if (url.indexOf("?") != -1) {
			var str = url.substr(1);
			var strs = str.split("&");
			for(var i = 0; i < strs.length; i ++) {
				theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
			}
		}
		return theRequest;
	}
			
	var Request = new Object();
	Request = GetRequest();
	var kw = Request['kw'];
	var id = Request['id'];
	var ca = Request['ca'];
	var pri = Request['pri'];
	var pre = Request['pre'];

	var length_id = $(".stamp_plateform").find("li").length;
	var length_kw = $(".stamp_app").find("li").length;
	if(kw == ''){
		$(".stamp_app").find("li").eq(0).addClass("current");
	}
	for(m=0;m<length_kw;m++){
		var num = $(".stamp_app").find("li").eq(m).attr("class");
		if(kw == num){
			$(".stamp_app").find("li").eq(m).addClass("current");
			if(num == 1){
				$(".stamp_keywords").css("display","block");
			}						
		} 
	}
	for(n=0;n<length_id;n++){
		var num = $(".stamp_plateform").find("li").eq(n).attr("class");
		if(id == num){
			$(".stamp_plateform").find("li").eq(n).addClass("current");
			var Request = new Object();
			Request = GetRequest();
			var pre = Request['pre'];
			var length_pre = $(".stamp_keywords").find("li").length;
			for(o=0;o<length_pre;o++){
				var no = $(".stamp_keywords").find("li").eq(o).attr("class");
				if(pre == no){
					$(".stamp_keywords").find("li").eq(o).addClass("current");
				}
			}
		}
	}//APP列表页选项框背景色
</script>
</html>

